/**
 * 
 */
package co.fitstart.signin.entity.security;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author downpour
 *
 */
public class MenuContext implements Serializable {

    private static final long serialVersionUID = 5369155682553774774L;

    private Set<String> menus = new LinkedHashSet<String>();
    
    /**
     * The default constructor
     */
    public MenuContext() {
        
    }
    
    /**
     * 
     * @param menu
     */
    public void add(String menu) {
        this.menus.add(menu);
    }
    
    /**
     * determine whether the input menu should highlight
     * 
     * @param menu
     * @return
     */
    public boolean shouldHighlight(String menu) {
        return this.menus.contains(menu);
    }

}
